package com.cangsan.erhai.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class VideoVo {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 比赛ID
     */
    @TableField(value = "contest_id")
    private Long contestId;

    @TableField(value = "title")
    private String title;

    /**
     * 赛程ID
     */
    @TableField(value = "course_id")
    private Long courseId;

    @TableField(value = "course_name")
    private String courseName;
    /**
     * 类别
     */
    @TableField(value = "video_type")
    private String videoType;

    /**
     * 名称
     */
    @TableField(value = "video_name")
    private String videoName;

    /**
     * 路径
     */
    @TableField(value = "video_path")
    private String videoPath;

    /**
     * 封面路径
     */
    @TableField(value = "video_conver_path")
    private String videoConverPath;

    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time" ,fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @TableLogic // 标记为逻辑删除字段
    private Integer isDel;


    /**
     * 主场队
     */
    @TableField(value = "course_master_team")
    private Long courseMasterTeam;

    /**
     * 客场队
     */
    @TableField(value = "course_away_team")
    private Long courseAwayTeam;

    @TableField(value = "contest_start_time")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date contestStartTime;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
